<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <link href="css/common.css" rel="stylesheet">
    <link rel="stylesheet" href="css/main.css">
    <script src="js/jquery-3.4.1.min.js"></script>
    <script src="js/bootstrap.js"></script>
</head>
<style>
    /* #log-img>img{
        margin-top: -14px;
    } */
    #nav-color {
        height: 80px;
        text-align: center;
    }

    #head-img {
        padding: 0 0 0 15px;
    }

    #head-img>img {
        max-width: 130px;
    }
</style>

<body>
    <div id="header">
        <nav class="navbar navbar-default navbar-fixed-top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" id="head-img" href="">
                        <img alt="Brand" src="img/logo.png"></a>
                </div>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav navbar-right" id="li">
                        <li class="active">
                            <a href="">首页</a>
                            <p class="line-top hidden-xs"></p>
                        </li>
                        <li><a href="#">签证指南</a>
                            <p class=" hidden-xs"></p>
                        </li>
                        <li><a href="#">签证加急</a>
                            <p class=" hidden-xs"></p>
                        </li>
                        <li><a href="#">签证服务</a>
                            <p class=" hidden-xs"></p>
                        </li>

                        <li><a href="#">签证资讯</a>
                            <p class=" hidden-xs"></p>
                        </li>
                        <li class="hidden-sm">
                            <a href="#">资料下载</a>
                            <p class="hidden-xs"></p>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</body>
<script>
    $("#li>li>a").on("click", function () {
        $("p").removeClass("line-top");
        $("li a").css("color", "#777")
        $(this).css("color", "#0ba1e4")
        $(this).next().addClass("line-top");
    })
</script>

</html>